import request from '@/utils/request'

// 获取基本配置信息
export async function getBaseInfo() {
  return request('/api/v2/getCustomerServiceConfig', {
    method: 'GET'
  })
}

// 更新基本配置信息
export async function updateBaseInfo(data: any) {
  return request('/api/v2/setCustomerServiceConfig', {
    method: 'POST',
    data
  })
}

// 获取基本配置信息
export async function getBasicSet() {
  return request('/api/getBasicSet', {
    method: 'GET'
  })
}

// 更新基本配置信息
export async function saveBasicSet(data: any) {
  return request('/api/saveBasicSet', {
    method: 'POST',
    data
  })
}

// 获取风控基本配置信息
export async function getRiskOptions() {
  return request('/api/backend/getRiskOptions', {
    method: 'GET'
  })
}